#include "mex.h"
void mexFunction(int nlhs, mxArray *plhs[],int nrhs,const mxArray *prhs[])
{
    double *i;//get the pointer of input variables.
    i = mxGetPr(prhs[0]);
    if(i[0]==1)
        mexPrintf("hello,world!\n");
    else
        mexPrintf("大家好！\n");
    
}